package cn.tedu.bookstore.controller;

import cn.tedu.bookstore.mapper.ProductMapper;
import cn.tedu.bookstore.pojo.vo.ProductIndexVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@RestController
public class ProductController {
    @Autowired(required = false)
    ProductMapper mapper;
    @RequestMapping("/product/select")
    public List<ProductIndexVO> select(){
        return mapper.select();
    }
}
